{include file="public/header" /}
<style>
    .layui-copy{width: 30px;position:absolute;top:1px;bottom: 1px;right:1px;cursor:pointer;background:white;text-align: center;color: #999999c2;display: flex;align-items: center;justify-content: center;}
    .layui-copy:hover{color: #999999;}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <span style="font-weight: bold;font-size: 15px;color: red;">订单内商品：</span>
            <div class="layui-form-item">
                <table class="layui-table">
                    <colgroup>
                        <col width="250">
                        <col width="200">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>商品名</th>
                        <th>规格</th>
                        <th>数量</th>
                        <th>价格</th>
                        <th>小计</th>
                        <th>是否售后</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="goods" item="vo"}
                    <tr>
                        <td>{$vo.good_name}</td>
                        <td>{$vo.goods_info}</td>
                        <td>{$vo.num}</td>
                        <td>{$vo.unit_price}</td>
                        <td>{$vo.unit_price * $vo.num}</td>
                        <td>
                            {if $vo.type == 1}
                            换货
                            {else /}
                            退货
                            {/if}

                            {if $vo.status == 1}-待处理{/if}
                            {if $vo.status == 2}-已同意{/if}
                            {if $vo.status == 3}-已拒绝{/if}

                            {if $vo.is_send == 0}
                            -进行中
                            {else /}
                            -已结束
                            {/if}
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <p style="font-weight: bold;font-size: 15px;">总计：{$data.all_money} 元     共 {$data.all_num} 件</p>
            </div>
            <p style="font-weight: bold;font-size: 15px;color: red;">订单信息（{$data.tui_user_son_id == 0 ? '自营订单' : '增补订单'}）：</p>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">用户昵称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.user_username?:'此用户暂无昵称'}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">用户手机号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.user_phone?:''}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.created_at?:''}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">退/换货原因：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.remark}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">快递公司：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.express}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">快递单号：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.express_no}">
                </div>
            </div>
            {if $data.merchant_remark}
            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <label class="layui-form-label">处理备注：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.merchant_remark}">
                </div>
            </div>
            {/if}

            <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-primary" onclick="wk.layer_close('close')">关闭</button>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>

</script>
</body>
</html>